using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace Web.Extensions
{
	public class WebSecurityComponents : IWindsorInstaller
	{
		public void Install(IWindsorContainer container, IConfigurationStore store)
		{
			container.Register(
				Component.For<IUserSession>().ImplementedBy<UserSession>().LifeStyle.Transient,
				Component.For<IAuthenticationService>().ImplementedBy<AuthenticationService>().LifeStyle.Transient);
		}
	}
}